/* Importing Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Miniver&family=Montserrat:wght@400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
}

:root {
    /* Farben */
    --white-color:#fff;
    --dark-color:#000000;
    --primary-color:#282772;
    --secondary-color:#bb2742; /*991f36 rot */
    --light-pink-color:#faf4f5;
    --medium-gray-color:#ccc;

    /* Schriftgrößen */
    --font-size-s:0.9rem;
    --font-size-n:1rem;
    --font-size-m:1.12rem;
    --font-size-l:1.5rem;
    --font-size-xl:2rem;
    --font-size-xxl:2.3rem;
    --font-size-xxxl:5rem;

    /* Schriftgewichte */
    --font-weight-normal:400;
    --font-weight-bold:700;
    --font-weight-medium:500;
    --font-weight-semi-bold:600;

    /* Abstände */
--border-radius-s: 8px;
    --border-radius-m: 30px;
    --border-radius-circle: 50%;

    /* Site max width */
    --site-max-width: 1300px;


}

/* Allgemeine Stile */
/* s+k Farben #010066 blau, #991f36 rot, #191919 dunkelgrau, #9e9e9e hellgrau */

#preloader {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 99999;
    width: 100vw;
    height: 100vh;
    transition: opacity 0.5s;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

img {
    width: 100%;
}

.section-title {
    text-align:center;
    padding: 60px 0 100px;
    text-transform:uppercase;
    font-size: var(--font-size-xl);
}

.section-title::after {
    content: "";
    width: 80px;
    height: 5px;
    display: block;
    margin: 10px auto 0;
    border-radius: var(--border-radius-s);
    background: var(--secondary-color);

}




/* Menü */
header  {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 15;
    background: transparent; /* komplett durchsichtig */
}



header .navbar {
    display: flex;
    padding:20px;
    align-items:center;
    justify-content: space-between;
    z-index: 15;
}

.navbar .nav-menu {
    display: flex;
    position: fixed;
    right: -300px;
    top: 0;
    width: 300px;
    height: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 100px;
    background: rgb(255, 255, 255);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    border-radius: 24px 0 0 24px;
    transition: right 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.3s;
    z-index: 2001;
    opacity: 0;
    pointer-events: none;
}

.nav-menu .nav-item {
    width: 100%;
    display: flex;
    align-items: center;
}

.menu-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 14;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}


body.show-mobile-menu .navbar .nav-menu {
    display: flex;
    right: 0;
    opacity: 1;
    pointer-events: auto;
}
body.show-mobile-menu .menu-overlay {
    opacity: 1;
    pointer-events: all;
}


.navbar .nav-menu .nav-link {
    display: flex;
    align-items: center;
    padding: 10px 18px;
    color: var(--dark-color);
    font-size: var(--font-size-xl);
    transition: 0.3s ease;
    margin-bottom: 12px;
    text-align: left;
    width: 100%;
    line-height: 1.2; 
    position: relative;
    background: linear-gradient(90deg, var(--secondary-color) 0%, var(--secondary-color) 100%);
    background-size: 0% 100%;
    background-repeat: no-repeat;
    transition: background-size 0.4s cubic-bezier(0.4,0,0.2,1), color 0.3s;
}

.navbar .nav-menu .nav-link:hover {
    background-size: 100% 100%;
    color: var(--white-color);
}

.plus-icon {
    color: var(--secondary-color); /* oder z.B. color: red; */
    margin-right: 6px;
    font-size: 2.5rem;      /* größer */
    font-weight: 200;       /* schlanker */
    letter-spacing: 0.5px;  /* optional: etwas Abstand */
    line-height: 1.2;         /* kompakt */
    font-family: 'Montserrat', 'Poppins', Arial, sans-serif;
    margin-right: 10px;
    display: inline-block;
    vertical-align: middle;
}



.logo-image {
    width: 120px;
    height: auto;
    max-width: 100%;
}

.logo-image:hover,
.logo-image:focus {
    opacity: 0.7;
    transition: opacity 0.3s;
}



/* Hamburger Grundform */
#menu-open-button {
    width: 48px;
    height: 48px;
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 2000;
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.menu-bar {
    display: block;
    width: 32px;
    height: 4px;
    background: var(--white-color);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
    position: relative;
}

/* Animation zum Kreuz */
body.show-mobile-menu #menu-open-button .menu-bar:nth-child(1) {
    transform: translateY(12px) rotate(45deg);
}
body.show-mobile-menu #menu-open-button .menu-bar:nth-child(2) {
    opacity: 0;
}
body.show-mobile-menu #menu-open-button .menu-bar:nth-child(3) {
    transform: translateY(-12px) rotate(-45deg);
}

body.show-mobile-menu #menu-open-button {
    color: var(--dark-color);   /* Farbe beim geöffneten Menü */
    background:rgba(0, 0, 0, 0)  /* Hintergrund beim geöffneten Menü */
}

body.show-mobile-menu #menu-open-button .menu-bar {
    background: var(--dark-color); /* oder #000 für schwarz */
}



/* Hero Section Hintergrundbild */
.hero-section {
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    /* background: url('pictures/Auswahl/background.jpg') center center/cover no-repeat;  <-- ENTFERNEN! */
    color: var(--white-color);
    position: relative;
    overflow: hidden;
    background: #111; /* oder jede andere Wunschfarbe */
}

#hero-subtitle {
    position: absolute;
    left: 32px;
    right: 32px;
    bottom: 32px;
    text-align: left;
    margin: 0;
    padding: 0;
    width: auto;
    max-width: 100vw;
    z-index: 2;

}

#hero-subtitle {
    transition: opacity 0.5s;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4); /* dunkler Overlay */
    z-index: 1;
}
.hero-section .section-content {
    position: relative;
    z-index: 1;
}

.hero-section .section-content{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;  /* vertikal zentrieren */
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    text-align: center;
}

.hero-image-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

.hero-section .hero-details .title {
    font-size: var(--font-size-xxl);
    color: var(--secondary-color);
    font-family: "Miniver", sans-serif;
}

.hero-section .hero-details .subtitle {
    font-family: 'Montserrat', 'Poppins', Arial, sans-serif;
    font-size: var(--font-size-xxxl);
    font-weight: 600;
    letter-spacing: 1px;
    display: inline-block;
}

.hero-section .hero-details .description {
    max-width: 70%;
    margin: 24px auto 40px auto; /* oben, rechts, unten, links */
    font-size: var(--font-size-m);
}



    

.hero-section .hero-image-wrapper {
    max-width: 500px;
    margin-right: 30px
}

.hero-logo {
    max-width: 360px;   /* oder dein gewünschter Wert */
    height: auto;
    display: block;
    margin: 0 auto;
    margin-bottom: 32px; /* Abstand nach unten */
}



/* Kontakt */
/* Kontakt */
.contact-section {
    background: var(--dark-color);
    display: flex;
    justify-content: flex-start;
}

.contact-section .section-content {
    width: 100%;
}

.contact-title {
    font-size: 3rem;
    color: var(--white-color);
    margin-bottom: 40px;
    text-align: left;
    font-weight: 700;
    letter-spacing: 1px;
}

.contact-text {
    font-size: 1.2rem;
    line-height: 1.4;
    color: var(--white-color);
    font-weight: 400;
    font-family: "Montserrat", sans-serif;
    text-align: left;
    margin: 0;
}

.contact-text a {
    color: var(--white-color);
    text-decoration: none;
    word-break: break-word;
}

.contact-company {
    font-weight: 700;
    font-size: 3rem;
    margin-bottom: 8px; 
    color: var(--white-color);
/* gleicher Wert wie .portfolio-title */
}

.contact-section .section-content {
    padding-left: 32px;
    padding-right: 32px;
}

.contact-section .section-content {
    padding-top: 40px;
    padding-bottom: 40px;
}

@media (max-width: 900px) {
    .contact-title {
        font-size: 2.2rem;
    }

    .contact-text {
        font-size: 1.1rem;
    }

    .contact-section .section-content {
    padding-left: 16px;
    padding-right: 16px;
}

}

#contact-company {
    font-weight: 700;
    font-size: 2rem;

}

@media (max-height: 600px) {
    .hero-section .subtitle,
    #hero-subtitle {
    hyphens: none;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    font-size: 2.5rem; 
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: 100%;
    box-sizing: border-box;
}
}




/* Gallery Section */
.gallery-section {
    background: var(--dark-color);
    padding: 24px 0 40px 0;
}

.gallery-section .section-title {
    color: var(--white-color);
    margin-bottom: 40px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 gleich breite Spalten */
    gap: 16px;
    padding-left: 32px;
    padding-right: 32px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-caption {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    background: rgba(0,0,0,0.65);
    color: #fff;
    padding: 12px 16px;
    border-radius: 0 0 8px 8px;
    font-size: 1rem;
    font-weight: 500;
    opacity: 0;
    pointer-events: auto;
    transition: opacity 0.3s;
    z-index: 2;
    box-sizing: border-box;
    user-select: none;        /* verhindert Markieren/Kopieren */
    -webkit-user-select: none;
    -ms-user-select: none;
    cursor: pointer;          /* zeigt an, dass es klickbar ist */
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
    pointer-events: auto;
}

.portfolio-section {
    scroll-margin-top: 100px; /* Passe 100px an die Höhe deiner Navbar an */
}




.hero-section {
    position: relative;
    transition: background-image 2s ease;
}

.side-fixed-button {
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    right: 0;
    top: 70%;
    transform: translateY(-50%);
    z-index: 2000;
    background: var(--primary-color);
    color: var(--white-color);
    border: none;
    border-radius: 0;
    width: 64px;
    height: 64px;
    font-size: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    opacity: 0.7;
}
.side-fixed-button:hover {
    background: var(--primary-color);
    opacity: 1;
}

/* Legal Content Section */
.legal-content {
    background: var(--dark-color);
    color: var(--white-color);
    padding: 32px 0 24px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 48px;
}

.legal-content-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.legal-text {
    color: #bbb;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.legal-links {
    display: flex;
    gap: 32px;
    margin-top: 4px;
}

.legal-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.2s;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
}

.legal-links a:hover {
    color: var(--secondary-color, #bb2742);
    border-bottom: 1px solid var(--secondary-color, #bb2742);
}

.gallery-caption {
    position: absolute;
    left: 16px;
    bottom: 16px;
    color: var(--white-color);
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    z-index: 2;
    pointer-events: auto;

}

html {
    scroll-behavior: smooth;
}



.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.4,0,0.2,1);
    pointer-events: none;
}
.hero-bg.active {
    opacity: 1;
    z-index: 1;
}
.hero-bg {
    background-color: #111; /* gleiche Farbe wie .hero-section */
}

/* Lightbox Overlay */
#lightbox {
    display: none; /* Standard: versteckt */
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}


.lightbox-inner {
    display: flex;
    align-items: center;
    gap: 32px;
}

#lightbox-img {
    max-width: 60vw;
    max-height: 80vh;
    border-radius: 8px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.lightbox-caption {
    position: static;
    background: rgba(0,0,0,0.6); /* halbtransparenter Hintergrund */
    color: #fff;
    font-size: 2rem;
    max-width: 30vw;
    text-align: left;
    box-shadow: none;
    padding: 16px;
    word-break: break-word;
    display: block;
    border-radius: 8px; /* optional, für abgerundete Ecken */
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    font-size: 2.5rem;
    padding: 8px 18px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    transition: background 0.2s;
}
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(28, 27, 72, 1); } 

@media (max-width: 900px) {
    .portfolio-section .portfolio-list {
        grid-template-columns: 1fr;   /* Nur eine Spalte */
        column-gap: 0;
        row-gap: 24px;                /* Abstand zwischen den Zeilen */
    }
    .portfolio-section .portfolio-list .portfolio-item {
        max-width: 100%;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 8px; 
        padding-left: 8px;
        padding-right: 8px;

    }
  .gallery-caption .caption-details {
    display: none;
  }

    .lightbox-inner {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    .lightbox-caption {
        max-width: 90vw;
        text-align: center;
        font-size: 1.2rem;
        padding: 12px;
    }
    #lightbox-img {
        max-width: 100vw;
        width: 100vw;
        border-radius: 0;
    }
    .lightbox-inner {
        padding: 0;
    }
    .portfolio-section .section-content {
        padding-left: 16px;
        padding-right: 16px;
    }

        .hero-section .subtitle,
    #hero-subtitle {
    hyphens: none;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    font-size: 2.5rem; 
    left: 16px;
    right: 16px;
    bottom: 32px;
    }
}

.gallery-item img {
    width: 100%;
    height: 320px;           /* oder z.B. 200px, je nach gewünschter Höhe */
    object-fit: cover;       /* Bild wird beschnitten, nicht verzerrt */
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

body.show-mobile-menu .side-fixed-button {
    display: none;
}

.nav-menu-logo {
    margin-top: auto; /* Logo immer ganz unten */
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 32px;
}

.mini-logo {
    width: 100px;    /* Größe des Logos, nach Bedarf anpassen */
    height: auto;
    opacity: 0.85;  /* Optional: leicht transparent */
}


@media (max-width: 900px) {
  .gallery-item img {
    aspect-ratio: 4 / 3;
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 8px; /* optional, für abgerundete Ecken */
    background: #222;   /* optional, falls Bild nicht vollflächig */
  }
}

@media (min-width: 3840px) {
    #hero-subtitle {
        font-size: 16rem; /* Passe die Größe nach Wunsch an */
    }
}

@media (min-width: 2560px) and (max-width: 3839px) {
    #hero-subtitle {
        font-size: 12rem; /* Passe die Größe nach Wunsch an */
    }
}














